package store

// jwt错误信息
// ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
var JwtErr = [...]string{"加密token不能为空", "token已过期", "JWT尚未生效", "JWT签名无效", "JWT格式错误", "JWT签发者无效", "JWT接收者无效"} // 错误返回信息列表

// 业务相关错误信息
// ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
const (
	FolderCreationFailed              = "文件夹创建失败"
	FailedToCheckFolder               = "检查文件夹失败"
	RequestBodyParameterParsingFailed = "请求体传参解析失败"
	ParameterFormatError              = "参数格式错误"
	SecurityInquiryError              = "密保查询错误"
	SecurityInSqlError                = "密保内容数据库操作失败"
	NoSecurityContentModified         = "没有密保内容修改数据"
	UseRedisError                     = "使用redis失败"
	UseDbError                        = "使用数据库失败"
	ErrInvalidHash                    = "编码的哈希的格式不正确"
	ErrIncompatibleVersion            = "argon2的不兼容版本"
)

// 用户相关错误信息
// ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
const (
	NotUserInfoMessage                 = "没有此用户信息请注册账号！"
	NotLoginOrExpiredLogin             = "未登录或登录过期，请重新登录"
	UserIdCannotBeEmpty                = "用户id不能为空"
	GetUserMessageError                = "用户信息查询失败"
	SetUserMessageError                = "用户信息修改失败"
	FailedToDeleteUser                 = "删除用户失败"
	GetUserIdError                     = "查询用户id失败"
	UserPasswordError                  = "用户密码错误"
	UserLoginStateModificationFailed   = "修改用户登录状态失败"
	UserNotLogin                       = "用户并未登陆"
	UserExitLoginError                 = "用户退出登陆失败"
	SecurityComparisonError            = "用户密保问题对比错误"
	UserConfidentialityEncryptionError = "用户密保加密失败"
	GetUserConfidentialityError        = "用户密保查询失败"
	UserConfidentialityFormatError     = "用户密保格式错误"
	UserConfidentialityRepeat          = "用户密保查询出现重复"
	UserHaveNotConfidentiality         = "此用户并未有该密保"
	UserConfidentialityTestError       = "用户密保验证失败"
	UserPasswordEncryptionErr          = "用户密码加密失败"
	UserNewPasswordEncryptionErr       = "用户新密码加密失败"
	FailedToCompareOldAndNewPasswords  = "用户新老密码对比失败"
	OldPasswordComparisonFailed        = "用户老密码对比失败"
	OldPasswordComparisonError         = "用户老密码对比错误"
	ConsistentOldAndNewPasswords       = "新老密码对比一致"
	NewPasswordWarehousingFailed       = "新密码入库失败"
	UserStatusNotFreeze                = "用户非冻结状态"
	FrozenStateJoinRedisError          = "冻结状态加入redis失败"
	FrozenStateJoinDBError             = "冻结状态加入数据库失败"
)

// token相关错误信息
// ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
const (
	TokenParsingFailed      = "token解析失败"
	TokenGenerationFailed   = "token生成失败"
	TokenJoinRedisError     = "token加入redis失败"
	DeleteTokenInRedisError = "删除redis中token数据失败"
	GetTokenInRedisError    = "获取redis中token数据失败"
)
